<%--
  Created by IntelliJ IDEA.
  User: 申忠帅
  Date: 2021/4/12
  Time: 17:09
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<html>
<head>
    <title>Title</title>
    <link rel="stylesheet" href="../../static/css/bootstrap.min.css">
    <style>
        td{
            text-align: center;
            vertical-align: middle !important;
        }
        th{
            text-align: center;
        }

        .bitPic {
            width: 60px;
            height: 60px;
        }
    </style>
</head>
<body>
    <table align="center"  class="table  table-hover table-bordered">
        <tr>
            <th>商品名称</th>
            <th>商品图片</th>
            <th>库存</th>
            <th>价格</th>
            <th colspan="2">操作</th>
        </tr>
        <c:forEach items="${toadm}" var="item">
            <tr>
                <td>${item.name}</td>
                <td><img src="/static/img/${item.fileName}" class="bitPic" alt=""></td>
                <td>${item.stock}</td>
                <td>${item.price}</td>
                <td><a href="product?opr=getcomdityAdmById&id=${item.id}" class="btn btn-primary">修改</a></td>
                <td>
                    <a href="product?opr=deladm&id=${item.id}"class="btn btn-danger">删除</a>
                </td>
            </tr>
        </c:forEach>
    </table>
    <script src="../../static/js/content.js?v=1.0.0"></script>
    <script>

    </script>
</body>
</html>
